package a17_state;

public class LIftRunState extends LiftState {
	public LIftRunState() {
		this.setState(StateEnum.RUN);
	}

	@Override
	public void run() {
		System.out.println("already run!");
		this.setState(StateEnum.RUN);
	}

	@Override
	public void stop() {
		System.out.println("stop it");
		this.setState(StateEnum.STOP);

	}

	@Override
	public void close() {
		System.out.println("already closed");
		this.setState(StateEnum.CLOSE);
	}

	@Override
	public void open() {
		System.out.println("can not open");

	}

}
